import request from '@/utils/request'

// 查询线索管理列表
export function listLeads(query) {
  return request({
    url: '/leads/leads/list',
    method: 'get',
    params: query
  })
}

// 查询线索管理详细
export function getLeads(leadId) {
  return request({
    url: '/leads/leads/' + leadId,
    method: 'get'
  })
}

// 新增线索管理
export function addLeads(data) {
  return request({
    url: '/leads/leads',
    method: 'post',
    data: data
  })
}

// 修改线索管理
export function updateLeads(data) {
  return request({
    url: '/leads/leads',
    method: 'put',
    data: data
  })
}

// 删除线索管理
export function delLeads(leadId) {
  return request({
    url: '/leads/leads/' + leadId,
    method: 'delete'
  })
}
